// components/vip/index.js
const {
  getScore
} = require('../../api/api')
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    mode: {
      type: String,
      value: 'vip'
    },
    setting: {
      type: String,
      value: ''
    },
    fixed: {
      type: Boolean,
      value: true
    },
    vipType:{
      type:String,
      value:''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    bottomLift: getApp().globalData.bottomLift,
    show: false,
    vipType: '',
    isShow:false
  },
  observers: {
    'mode': function (val) {
      // this.syncData(val)
    },
    'vipType':function (type) {
      this.syncData(type)
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
    async syncData(vipType) {
      const {
        mode
      } = this.data
      this.setData({
        isShow: vipType=='svip'?false:vipType == mode ? false : true,
      })
    },
    goto(e) {
      wx.navigateTo({
        url: '/pages/article/vip/index',
      })
    },
  }
})